package algorithm;

import java.util.Date;

public class Person {
    public String name;
    public Date   birthDate;

    public long compareWith(Person other) {
        return this.birthDate.getTime() - other.birthDate.getTime();
    }

    public long calcAgeDiffWith(Person other) {
        return this.birthDate.getTime() - other.birthDate.getTime();
    }
}